package com.java.mk.weather;

public class ObserveTest {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        Display1 display1 = new Display1(weatherData);
        Display2 display2 = new Display2(weatherData);
        Display3 display3 = new Display3(weatherData);
        weatherData.setData(1, 2, 3);
        weatherData.changed();

        weatherData.setData(-1, -2, -3);
        weatherData.changed();
        weatherData.setData(10, 12, 13);
        weatherData.changed();
    }
}
